<%inherit file="../base.mako"/>
<%
exposition = ''
if c.risk.impact is not None and c.risk.probability is not None:
	 exposition = c.risk.impact * c.risk.probability
%>
<risk href="${h.url_for('risk', id=c.risk.id)}">
	<id>${c.risk.id}</id>
	<name>${c.risk.name}</name>
	<description>${c.risk.description}</description>
	<impact>${c.risk.impact}</impact>
	<probability>${c.risk.probability}</probability>
	<exposition>${ exposition }</exposition>
	<impacts>
% for impact in c.risk.impacts:
		<impact>
			<name>${impact.name}</name>
			<description>${impact.description}</description>
		</impact>
% endfor
	</impacts>
	<indicators>
% for indicator in c.risk.indicators:
		<indicator>
			<name>${indicator.name}</name>
			<description>${indicator.description}</description>
		</indicator>
% endfor
	</indicators>
	<strategies>
% for strategy in c.risk.strategies:
		<strategy>
			<name>${strategy.name}</name>
			<description>${strategy.description}</description>
		</strategy>
% endfor
	</strategies>
	<actions>
% for action in c.risk.actions:
		<action>
			<name>${action.name}</name>
			<description>${action.description}</description>
		</action>
% endfor
	</actions>
</risk>